package com.hc.entity;

import lombok.*;

import java.util.List;

/**
 * @ClassName Comment
 * @Description 评论表
 * @Author shanshan
 * @Date 2022/10/18 19:42
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Comment {
    private Integer id;
    private Paper paper; //文章类
    private String text;
    private Integer fid; //父id
    private int likenum; //点赞数
    private int unlikenum; //踩数
    private String status; // 是否置顶
    private User user; //评论者
    private List<Comment> subComments;
}